Changes for correct pgrp behavior from Bob Glickstein
authorJim Blandy <jimb@redhat.com>
Wed, 16 Jun 1993 23:49:54 +0000 (23:49 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 16 Jun 1993 23:49:54 +0000 (23:49 +0000)
<bobg@zindigo.z-code.com>:
* m/iris4d.h (LIB_STANDARD): Do include -lbsd here.
* s/irix4-0.h (USE_IRIX_BSDPGRP): #define this.
(GETPGRP_NO_ARG): Don't #define this.
* callproc.c [USE_IRIX_BSDPGRP] (Fcall_process): Call BSDsetpgrp
instead of plain setpgrp.
[USE_IRIX_BSDPGRP] (child_setup): Same.
* emacs.c [GETPGRP_NO_ARG] (main, shut_down_emacs): CPP clauses
deleted; this flag isn't needed anymore.
[USE_IRIX_BSDPGRP] (main, shut_down_emacs): Call BSDsetpgrp and
BSDgetpgrp instead of plain setpgrp and getpgrp.
* process.c [USE_IRIX_BSDPGRP] (create_process): Don't call
setpgrp before opening the tty.  Call BSDsetpgrp instead of
setpgrp, after opening the tty.
* sysdep.c [USE_IRIX_BSDPGRP] (sys_suspend,
narrow_foreground_group, widen_foreground_group): Call BSDgetpgrp
and BSDsetpgrp instead of getpgrp and setpgrp.

src/m/iris4d.h
src/s/irix4-0.h

index bd374367375df41bd7724c60a01b73d2e97400b7..04b85467b7f1afffc21c9b6b3e385feff353ebb1 100644 (file)
@@ -143,7 +143,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* When you *do* link with -lbsd, you *still* get System V getpgrp, unless:
    you define _BSD_COMPAT, -or- you call `BSDgetpgrp' explicitly.
-   Emacs does neither, so it gets SysV getpgrp which wants no arguments.  */
+   Emacs does the latter.  */
 
 #ifdef HAVE_CRTN
 /* Must define START-FILES so that the linker can find /usr/lib/crt0.o.  */
index 05ad1d21552d2c6b10ff5fe68f7a0eee41f0edd6..70c255044dbc887bf86b351e15c6a4e658455c92 100644 (file)
@@ -3,6 +3,8 @@
 #define USG5_3
 #define IRIX4
 
+#define USE_IRIX_BSDPGRP
+
 #define HAVE_ALLOCA
 #ifndef NOT_C_CODE
 #include <alloca.h>
@@ -53,6 +55,3 @@
 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
    on this system, so inhibit use of matherr.  */
 #define NO_MATHERR
-
-/* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed.  */
-#define GETPGRP_NO_ARG